#include <stdio.h>
int main()
{
    int i;
    printf("For Loop:\n");
    for (i = 0; i < 5; i++)
    {
        printf("%d\n", i);
    }

    printf("While Loop:\n");
    i = 0;
    while (i < 5)
    {
        printf("%d\n", i);
        i++;
    }
    printf("Do While Loop:\n");
    i = 0;
    do
    {
        printf("%d\n", i);
        i++;
    } while (i < 5);

    int num = 3;
    printf("If Else:\n");
    if (num == 1)
    {
        printf("Number is 1\n");
    }
    else if (num == 2)
    {
        printf("Number is 2\n");
    }
    else
    {
        printf("is not 1 or not 2");
    }

    printf("Swith case:\n");
    switch (num){
        case 1:
            printf("Number is 1\n");
            break;
        case 2:
            printf("Number is 2\n");
            break;
        default:
            printf("is not 1 or not 2");
    }
    return 0;
}